package linwen.wang.exception.commom;

import lombok.Data;
import java.io.Serializable;

/**
 * @ClassName ResultVO
 * @Description
 * @Author lin
 * @Date 2022/3/25 下午10:16
 * @Version V1.0
 */
@Data
public class ResultVO implements Serializable {
    private String code;
    private String message;
    private Object result;

    public static ResultVO buildSuccessResultVO(Object o){
        ResultVO resultVO = new ResultVO();
        resultVO.setCode("200");
        resultVO.setMessage("请求成功");
        resultVO.setResult(o);
        return resultVO;
    }
}
